package com.qf.czh.vhr.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * (Department)实体类
 *
 * @author makejava
 * @since 2022-02-24 12:50:24
 */
public class Department implements Serializable {
    private static final long serialVersionUID = 796258389077805510L;
    
    private Integer id;
    /**
     * 部门名称
     */
    private String name;
    
    private Integer parentId;
    
    private String depPath;
    
    private Boolean enabled;
    
    private Integer isParent;

    private Integer result;

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    //这里先初始化,是因为即使没有子部门了,json中这个值也不是null.而是个空数组,方便在此继续添加子部门.不用先吧null转为空数组再添加
    private List<Department> children = new ArrayList<Department>();

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getDepPath() {
        return depPath;
    }

    public void setDepPath(String depPath) {
        this.depPath = depPath;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public Integer getIsParent() {
        return isParent;
    }

    public void setIsParent(Integer isParent) {
        this.isParent = isParent;
    }

    public List<Department> getChildren() {
        return children;
    }

    public void setChildren(List<Department> children) {
        this.children = children;
    }
}

